package com.fowo.api.documentCirculation.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 数据事务分支 导入导出辅助模型 */
@Data
public class DataTaskBranchExcelPo {

  @ExcelProperty(value = "所属数据事务")
  private String parentIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属数据事务")
  private Long parentId;

  @NotBlank(message = "类型不能为空")
  @Size(max = 50, message = "类型长度不能超过20")
  @ExcelProperty(value = "*类型")
  private String type;

  @Size(max = 50, message = "源表长度不能超过20")
  @ExcelProperty(value = "源表")
  private String fromTable;

  @Size(max = 50, message = "目标表长度不能超过20")
  @ExcelProperty(value = "目标表")
  private String toTable;

  @Size(max = 50, message = "源表状态字段长度不能超过20")
  @ExcelProperty(value = "源表状态字段")
  private String fromTableStatusField;

  @Size(max = 50, message = "中间值长度不能超过20")
  @ExcelProperty(value = "中间值")
  private String median;

  @Size(max = 50, message = "完成值长度不能超过20")
  @ExcelProperty(value = "完成值")
  private String completionValue;

  @Size(max = 50, message = "源表检测字段长度不能超过20")
  @ExcelProperty(value = "源表检测字段")
  private String fromTableDetectionField;

  @Size(max = 50, message = "源表钩稽字段长度不能超过20")
  @ExcelProperty(value = "源表钩稽字段")
  private String fromTableCrossCheckFields;

  @Size(max = 50, message = "源表钩稽字段长度不能超过20")
  @ExcelProperty(value = "源表钩稽字段")
  private String fromTableCumulativeFields;

  @Size(max = 50, message = "目标表ID列长度不能超过20")
  @ExcelProperty(value = "目标表ID列")
  private String toTableIdColumn;

  @Size(max = 50, message = "钩稽标识长度不能超过20")
  @ExcelProperty(value = "钩稽标识")
  private String crossCheckId;
}
